<?php
if ($use_username) {
	$username = array(
		'name'	=> 'username',
		'id'	=> 'username',
		'value' => set_value('username'),
		'maxlength'	=> $this->config->item('username_max_length', 'tank_auth'),
		'size'	=> 30,
	);
}
$email = array(
	'name'	=> 'email',
	'id'	=> 'email',
	'value'	=> set_value('email'),
	'maxlength'	=> 80,
	'size'	=> 30,
);
$password = array(
	'name'	=> 'password',
	'id'	=> 'password',
	'value' => set_value('password'),
	'maxlength'	=> $this->config->item('password_max_length', 'tank_auth'),
	'size'	=> 30,
);
$confirm_password = array(
	'name'	=> 'confirm_password',
	'id'	=> 'confirm_password',
	'value' => set_value('confirm_password'),
	'maxlength'	=> $this->config->item('password_max_length', 'tank_auth'),
	'size'	=> 30,
);
$captcha = array(
	'name'	=> 'captcha',
	'id'	=> 'captcha',
	'maxlength'	=> 8,
);
?>
<?php
$this->backyard_view->header();
?>
<tr>
            <td valign="top" align="center">
<?php echo form_open($this->uri->uri_string(),array('id'=>'register_form')); ?><table width="763" cellspacing="0" cellpadding="0" border="0">
                    <tbody><tr>
                      <td width="763" valign="bottom" height="43" background="/images/content2_top.jpg" align="center">&nbsp;</td>
                    </tr>
                    <tr>
                      <td width="763" valign="top" height="22" background="/images/content2_mid.jpg" align="center">
                        <table width="445" cellspacing="0" cellpadding="0" border="0">
                        
                          <tbody><tr>
                            <td valign="top" height="10" align="center"><span class="h1">Register</span></td>
                          </tr>
                          <tr>
                            <td height="5" align="left"></td>
                          </tr>
                          
                          
                          <tr>
                            <td height="30" class="title2">Login detail </td>
                          </tr>
                          <tr>
                            <td height="5"><img width="445" height="7" alt="" src="/images/line.jpg"></td>
                          </tr>
                          <tr>
                            <td height="15">&nbsp;</td>
                          </tr>
                          <tr>
                            <td height="15"><table width="445" cellspacing="0" cellpadding="0" border="0">
                              <tbody>
                                  <tr>
                                      <td width="24" align="left">
                                          <img width="16" height="16" src="/images/arrow.jpg">
                                      </td>
                                      <td width="140" class="font1">
                                          <?php echo form_label('Email Address', $email['id']); ?>
                                      </td>
                                      <td>
                                          <?php echo form_input($email); ?>
                                      </td>
                                  </tr>
								  <tr>
								  	<td style="color: red;" colspan=3>
                                          <?php echo form_error($email['name']); ?>
                                          <?php echo isset($errors[$email['name']]) ? $errors[$email['name']] : ''; ?>
                                      </td>
								  </tr>
                              </tbody>
                          </table></td>
                          </tr>
                          <tr>
                            <td><table width="445" cellspacing="0" cellpadding="0" border="0">
                              <tbody><tr>
                              	<td width="24" align="left">
                                          <img width="16" height="16" src="/images/arrow.jpg">
                                      </td>
                              <td width="140" class="font1">
                                  <?php echo form_label('Password', $password['id']); ?>
                              </td>
                              <td>
                                  <?php echo form_password($password); ?>
                              </td>
                              </tr>
                              <tr>
                                  <td style="color: red;" colspan=3>
                                      <?php echo form_error($password['name']); ?>
                                  </td>
                              </tr>
                            </tbody></table></td>
                          </tr>
                          <tr>
                            <td><table width="445" cellspacing="0" cellpadding="0" border="0">
                              <tbody><tr>
                              	<td width="24" align="left">
                                          <img width="16" height="16" src="/images/arrow.jpg">
                                      </td>
                              <td width="140" class="font1">
                                  <?php echo form_label('Confirm Password', $confirm_password['id']); ?>
                              </td>
                              <td>
                                  <?php echo form_password($confirm_password); ?>
                              </td>
                              </tr>
							  <tr>
							  	<td style="color: red;" colspan=3>
                                  <?php echo form_error($confirm_password['name']); ?>
                              </td>
							  </tr>
                            </tbody></table></td>
                          </tr>
                          <tr>
                            <td height="38">&nbsp;</td>
                          </tr>                          <tr>
                            <td height="30" class="title2">Security measure area</td>
                          </tr>
                          <tr>
                            <td height="10"><img width="445" height="7" alt="" src="/images/line.jpg"></td>
                          </tr>
                          <tr>
                            <td height="15"></td>
                          </tr>
                          <tr>
                            <td><table width="445" cellspacing="0" cellpadding="0" border="0">
                              <tbody><tr>
                                <td width="295" align="left"><div id="recaptcha_image"></div></td>
								<td>
                                  <input type="text" id="recaptcha_response_field" name="recaptcha_response_field" />
                              	</td>
								<td>
                                  <a href="javascript:Recaptcha.reload()"><img src="/images/public/reload_icon.gif" style="border:none;"/></a>
                              	</td>
                              </tr>
                            </tbody></table></td>
                          </tr>
                          <tr>
                              <td style="color: red;">
                                  <?php echo form_error('recaptcha_response_field'); ?>
                              </td>
                              <?php echo $recaptcha_html; ?>
                          </tr>
                          <tr>
                            <td height="35"><img width="445" height="7" alt="" src="/images/line.jpg"></td>
                          </tr>
                          <tr>
                            <td>&nbsp;</td>
                          </tr>
                          <tr>
                            <td valign="middle" height="50" align="center"><table width="170" cellspacing="0" cellpadding="0" border="0">
                              <tbody><tr>
                                <td width="170" height="40" background="/images/creat_btn.jpg" align="center"><a class="creat_font" onclick="document.getElementById('register_form').submit(); return false;" href="javascript:;">Creat account</a></td>
                              </tr>
                            </tbody></table></td>
                          </tr>
                          <tr>
                            
                          </tr>
                        </tbody></table>
                        </td>
                    </tr>
                    <tr>
                      <td><img width="763" height="91" src="/images/content2_down.jpg"></td>
                    </tr>
                  </tbody></table>
            <?php echo form_close(); ?></td>
          </tr>
<?php
$this->backyard_view->footer();
?>